package com.ruoyi.project.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.SysTabbarMapper;
import com.ruoyi.project.system.domain.SysTabbar;
import com.ruoyi.project.system.service.ISysTabbarService;

/**
 * 微信菜单Service业务层处理
 *
 * @author hongwj
 * @date 2024-03-07
 */
@Service
public class SysTabbarServiceImpl implements ISysTabbarService {
    @Autowired
    private SysTabbarMapper sysTabbarMapper;

    /**
     * 查询微信菜单
     *
     * @param id 微信菜单主键
     * @return 微信菜单
     */
    @Override
    public SysTabbar selectSysTabbarById(Long id) {
        return sysTabbarMapper.selectSysTabbarById(id);
    }

    /**
     * 查询微信菜单列表
     *
     * @param sysTabbar 微信菜单
     * @return 微信菜单
     */
    @Override
    public List<SysTabbar> selectSysTabbarList(SysTabbar sysTabbar) {
        return sysTabbarMapper.selectSysTabbarList(sysTabbar);
    }

    /**
     * 新增微信菜单
     *
     * @param sysTabbar 微信菜单
     * @return 结果
     */
    @Override
    public int insertSysTabbar(SysTabbar sysTabbar) {
            return sysTabbarMapper.insertSysTabbar(sysTabbar);
    }

    /**
     * 修改微信菜单
     *
     * @param sysTabbar 微信菜单
     * @return 结果
     */
    @Override
    public int updateSysTabbar(SysTabbar sysTabbar) {
        return sysTabbarMapper.updateSysTabbar(sysTabbar);
    }

    /**
     * 批量删除微信菜单
     *
     * @param ids 需要删除的微信菜单主键
     * @return 结果
     */
    @Override
    public int deleteSysTabbarByIds(Long[] ids) {
        return sysTabbarMapper.deleteSysTabbarByIds(ids);
    }

    /**
     * 删除微信菜单信息
     *
     * @param id 微信菜单主键
     * @return 结果
     */
    @Override
    public int deleteSysTabbarById(Long id) {
        return sysTabbarMapper.deleteSysTabbarById(id);
    }
}
